package com.lightkits.wms.controller;

import com.lightkits.wms.domain.nontaskpickinglist.NonTaskPickingExecutor;
import com.lightkits.wms.dto.nontaskpicking.NonTaskPickingRequestType;
import com.lightkits.wms.dto.nontaskpicking.NonTaskPickingResponseType;
import io.choerodon.swagger.annotation.Permission;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * NonTaskPickController
 *
 * @author jing.wei@hand-china.com
 * Created on 2019/5/21 16:14
 */
@RestController
@RequestMapping("/NonTaskPickingService")
public class NonTaskPickController {

    @Autowired
    private NonTaskPickingExecutor nonTaskPickingExecutor ;

    @PostMapping(value = "/createNonTaskPick")
    @Permission(permissionPublic = true)
    @ApiOperation(value = "/createNonTaskPick")
    @ResponseBody
    public NonTaskPickingResponseType createNonTaskPick(@RequestBody(required = false) NonTaskPickingRequestType request) {
        return nonTaskPickingExecutor.service(request);
    }
}
